package com.tree.jobquartz;

import com.tree.jobquartz.job.BackTestRequestJob;
import com.tree.jobquartz.pojo.TbUser;
import com.tree.jobquartz.template.SchedulerTemplate;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestController
 * @Description: TODO
 * @Author: myl
 * @Create_time:2021/5/6 19:19
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private SchedulerTemplate schedulerTemplate;

    @GetMapping("/")
    @ApiOperation("test")
    public void testApi(@RequestBody TbUser tbUser){
//        schedulerTemplate.startBackTestJob("china","","","", BackTestRequestJob.class);
        System.out.println("发起完成");
    }
}
